package com.thomasmoerman.dci.tmc

import javax.transaction._

trait TransactionManagerComponent {
  this: DataSourceComponent =>
  
  val userTransaction: UserTransaction
  
  def beginTransaction = userTransaction.begin
  
  def commitTransaction = userTransaction.commit
  
  def rollbackTransaction = userTransaction.rollback
  
}